package org.example.myleet.p794;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(!solution.validTicTacToe(new String[]{"O  ","   ","   "}));
        Assert.isTrue(!solution.validTicTacToe(new String[]{"XXX","   ","OOO"}));
        Assert.isTrue(solution.validTicTacToe(new String[]{"XOX","O O","XOX"}));
        Assert.isTrue(solution.validTicTacToe(new String[]{"OOX","OXO","XXX"}));
        Assert.isTrue(solution.validTicTacToe(new String[]{"   ","   ","   "}));
        Assert.isTrue(!solution.validTicTacToe(new String[]{"XXX","XOO","OO "}));
        Assert.isTrue(!solution.validTicTacToe(new String[]{"XOX","OXO","XO "}));
        Assert.isTrue(!solution.validTicTacToe(new String[]{"OXX","XOX","OXO"}));
        Assert.isTrue(solution.validTicTacToe(new String[]{"   ","   ","X O"}));
    }
}
